package com.jiyun.racelist.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.model.Xuanze;
import com.jiyun.racelist.mapper.XuanZeMapper;
import com.jiyun.racelist.service.XuanZeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class XuanZeServiceImpl extends ServiceImpl<XuanZeMapper, Xuanze> implements XuanZeService {


    @Autowired
    XuanZeMapper xuanZeMapper;

    @Override
    public Page<Xuanze> findPage2(Integer pageNum, Integer pageSize, Xuanze xuanZe) {
        Page<Xuanze> xuanZePage = new Page<>(pageNum, pageSize);
        xuanZeMapper.findPage2(xuanZePage,xuanZe);
        return xuanZePage;
    }

    @Override
    public Integer findTiCount() {
        return xuanZeMapper.findTiCount();
    }
}
